package org.example.pojo;

//import com.alibaba.fastjson.annotation.JSONField;
//import org.springframework.format.annotation.DateTimeFormat;

//import io.swagger.annotations.ApiModel;

import java.io.Serializable;
import java.util.Date;

//@ApiModel("用户信息")
public class User implements Serializable {

    private long id;
    private long role;
    //@Column(name = "userName")
    private String username;
    private String password;
    private String name;
    private String telephone;
    private String unit;
    //@Column(name = "landMark")

    private String landmark;
    private Date enterdate;

    private Userrole r;//默认insert、update都需要传这个值

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getRole() {
        return role;
    }

    public void setRole(long role) {
        this.role = role;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getLandmark() {
        return landmark;
    }

    public void setLandmark(String landmark) {
        this.landmark = landmark;
    }

    public Date getEnterdate() {
        return enterdate;
    }

    public void setEnterdate(Date enterdate) {
        this.enterdate = enterdate;
    }
}
